<template>
  <div id="app">
    <router-view v-if="isRouterAlive"></router-view>
    <!-- 满意度调查 -->
    <Feedback />
  </div>
</template>

<script>
import Feedback from "components/feedback";
export default {
  name: "App",
  components: { Feedback },
  mounted() {},
  provide() {
    return {
      reload: this.reload,
    };
  },
  data() {
    return {
      isRouterAlive: true,
    };
  },
  methods: {
    reload() {
      this.isRouterAlive = false;
      this.$nextTick(function () {
        this.isRouterAlive = true;
      });
    },
  },
};
</script>
